import { Injectable, NestMiddleware } from "@nestjs/common";
import { AdminService } from "./admin.service";
import { Request, Response, NextFunction } from "express";

@Injectable()
export class AdminMiddleware implements NestMiddleware {
  constructor(private readonly userService: AdminService) {}

  async use(req: Request, res: Response, next: NextFunction) {
    const authHeaders = req.headers.authorization;

    // console.log(authHeaders);

    next();
  }
}